package cn.lingyangwl.agile.system.model.entity;

import cn.lingyangwl.agile.tenant.core.DataIsolation;
import cn.lingyangwl.agile.model.BasePlusPO;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.Getter;
import lombok.Setter;

/**
 * 文章组
 *
 * @author shenguangyang
 */
@Getter
@Setter
@TableName("article_group")
@DataIsolation(filterTenant = true, tableName = "article_group")
public class ArticleGroup extends BasePlusPO {
    @TableId
	private Long id;
	
	/**
	 * 文章数量
	 */
	private Integer articleNum = 0;
	
	/**
	 * 状态
	 */
	private String status;
	
	/**
	 * 分组名称
	 */
	private String name;
	
	/**
	 * 排序序号
	 */
	private Integer sortNo;

    public static LambdaQueryWrapper<ArticleGroup> lqw() {
		return Wrappers.lambdaQuery();
	}

	public static LambdaUpdateWrapper<ArticleGroup> luw() {
		return Wrappers.lambdaUpdate();
	}
}
